import layout from '@/layout'
export default {
  path: '/staff',
  component: layout,
  meta: {
    title: '员工管理',
    icon: 'el-icon-files'
  },
  children: [
    {
      path: '/worManagement', // 二级路由的路径，
      name: 'worManagement',
      component: () => import('@/views/staffManagement/worManagement.vue'),
      meta: {
        title: '快递员管理',
        icon: 'el-icon-some-icon'
      }
    },
    {
      path: '/worManagement/workAllot/:id?', // 作业范围分配
      component: () => import('@/views/staffManagement/workAllot.vue'),
      hidden: true, // 表示隐藏在左侧菜单
      meta: {
        title: '作业范围分配' // 显示在导航的文本
      }
    },
    {
      path: '/expreManagement', // 二级路由的路径，
      name: 'expreManagement',
      component: () => import('@/views/staffManagement/expreManagement.vue'),
      meta: {
        title: '司机列表',
        icon: 'el-icon-some-icon'
      }
    },
    {
      path: '/expreManagement/detail/:id?', // 司机详细的地址
      component: () => import('@/views/staffManagement/detail.vue'),
      hidden: true, // 表示隐藏在左侧菜单
      meta: {
        title: '司机详细' // 显示在导航的文本
      }
    },
    {
      path: '/expreManagement/carDetail/:id?', // 司机详细的地址
      name: '/expreManagement/carDetail',
      component: () => import('@/views/staffManagement/carDetail.vue'),

      hidden: true, // 表示隐藏在左侧菜单
      meta: {
        title: '车辆详细' // 显示在导航的文本
      }
    },
    {
      path: '/driverManagement', // 二级路由的路径，
      name: 'driverManagement',
      component: () => import('@/views/staffManagement/driverManagement.vue'),
      meta: {
        title: '排班管理',
        icon: 'el-icon-some-icon'
      }
    },
    {
      path: '/driverManagement/SchedulingInstall',
      name: '/driverManagement/SchedulingInstall',
      component: () => import('@/views/staffManagement/SchedulingInstall.vue'),

      hidden: true, // 表示隐藏在左侧菜单
      meta: {
        title: '排班设置' // 显示在导航的文本
      }
    }
  ]
}
